package com.sgb.merchant.view.adapter;

import androidx.annotation.Nullable;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sgb.link.entity.merchant.IndustryListEntity;
import com.sgb.merchant.BR;
import com.sgb.merchant.R;

import java.util.List;

/**
 * @author: 王彬臣
 * @date: 2021/10/13
 * @Description: 首页产业园区列表adapter
 */
public class IndustryListAdapter extends BaseQuickAdapter<IndustryListEntity, BaseViewHolder> {
    public IndustryListAdapter(@Nullable @org.jetbrains.annotations.Nullable List<IndustryListEntity> data) {
        super(R.layout.merchant_item_industry,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, IndustryListEntity item) {
        ViewDataBinding binding = DataBindingUtil.bind(helper.itemView);
        binding.setVariable(BR.viewModel,item);
    }
}
